.class Llt/noframe/gpsfarmguide/views/FragmentMap$10;
.super Ljava/lang/Object;
.source "FragmentMap.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/utils/RuntimePermissions$OnPermissionListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/noframe/gpsfarmguide/views/FragmentMap;->requestGPSPermission(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

.field final synthetic val$animateLocation:Z


# direct methods
.method constructor <init>(Llt/noframe/gpsfarmguide/views/FragmentMap;Z)V
    .locals 0

    .line 882
    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$10;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    iput-boolean p2, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$10;->val$animateLocation:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public permissionDenied()V
    .locals 2

    const-string v0, "FragmentMap"

    const-string v1, "GPS Permission denied"

    .line 909
    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public permissionGranted()V
    .locals 2
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "MissingPermission"
        }
    .end annotation

    .line 887
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$10;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$200(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setMyLocationEnabled(Z)V

    .line 889
    iget-boolean v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$10;->val$animateLocation:Z

    if-eqz v0, :cond_0

    .line 891
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/views/FragmentMap$10$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/views/FragmentMap$10$1;-><init>(Llt/noframe/gpsfarmguide/views/FragmentMap$10;)V

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getLastLocation(Lkotlin/jvm/functions/Function1;)V

    .line 903
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/FragmentMap$10;->this$0:Llt/noframe/gpsfarmguide/views/FragmentMap;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/views/FragmentMap;->access$200(Llt/noframe/gpsfarmguide/views/FragmentMap;)Llt/noframe/gpsfarmguide/map/CustomGoogleMap;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->getMainLocationSource()Llt/noframe/gpsfarmguide/gps/AppLocationProvider$AppCustomLocationSource;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/GoogleMap;->setLocationSource(Lcom/google/android/gms/maps/LocationSource;)V

    .line 904
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->startFree()V

    return-void
.end method
